import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 车系	根据查询条件返回车系		 /vehicleProduct/seriess/all
export const querySeriessList = () => axios.get(`${SERVER.BASEDATA}/vehicleProduct/seriess/all`)

// 车型	根据查询条件返回车型		 /vehicleProduct/models/all?seriesId=1
export const queryModelsList = (seriesId) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/models/alls?seriesId=${seriesId}`)

// 配置	根据查询条件返回配置		  /vehicleProduct/packages/all?seriesId=1
export const queryPackagesList = (seriesId) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/packages/all?seriesId=${seriesId}`)

// 选装 /api/basedata/vehicleProduct/options/all
export const queryOptionsList = (params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/options/all`, {
  params
})
// 外饰  /vehicleProduct/colors/colorinfo/exterior
export const outColor = (params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/colors/colorinfo/exterior`, {
  params
})
// 内饰 /vehicleProduct/colors/colorinfo/Interior
export const trimColor = (params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/colors/colorinfo/Interior`, {
  params
})
